home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / GDIDEMO.PAK / FONTX.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  808b  |  33 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1991, 1995 by Borland International, All Rights Reserved
  4. //
  5. //   Font demo window header
  6. //----------------------------------------------------------------------------
  7. #if !defined(FONT_H)
  8. #define FONT_H
  9.  
  10. #include "demobase.h"
  11.  
  12. // Font demo constants
  13. const int MaxNumFonts = 64; // Maximum number of fonts displayable in FontDemo
  14.  
  15. class TFontWindow : public TBaseDemoWindow {
  16.   public:
  17.     TFontWindow();
  18.    ~TFontWindow();
  19.  
  20.   protected:
  21.     void Paint(TDC&, bool, TRect&);
  22.     void EvSize(uint SizeType, TSize& Size);
  23.  
  24.   private:
  25.     long    FontsHeight;
  26.     long    FontsWidth;
  27.  
  28.   DECLARE_RESPONSE_TABLE(TFontWindow);
  29.   DECLARE_CASTABLE;
  30. };
  31.  
  32. #endif  //  FONT_H
  33.